package com.fast.common.em;

public enum ResultEm {

    /*
      HttpStatus
      200 - 请求成功

      400 - 无效参数
      401 - 未经过认证
      404 - 无资源

      500 - 系统异常
      501 - 内部异常
   */

    OK("200", "操作成功！"),

    UN_PARAM("400", "无效参数！"),
    UN_AUTHORIZED("401", "未经过认证！"),
    Not_RESOURCE("404", "无资源！"),


    ERROR("500", "系统异常！"),
    ERROR_IN("501", "内部异常！");


    public String code;

    public String message;

    ResultEm(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
